<?php
namespace app\admin\model;

use think\Model;
use think\Db;

class Admin extends Model
{
	protected $autoWriteTimestamp = true;
	//protected $createTime = 'admin_addtime';
	protected $updateTime = false;

	public function is_login()
	{
		return 0;
	}

	public function log()
	{
		return $this->hasMany('Backstage_log');
	}

	public function roles()
	{
		return $this->belongsToMany('Role','auth_group_access');
	}
}